package net.zdreamer.geracomium.adapter;

import java.util.List;

import net.zdreamer.geracomium.entity.MessageNotiInfos.MessageNotiInfo;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.geracomium.R;

public class MessageNotifiAdapter extends MyBaseAdapter<MessageNotiInfo> {

	public MessageNotifiAdapter(Context context, List<MessageNotiInfo> list,
			int res) {
		super(context, list, res);
	}

	@Override
	protected View getView(int position, View convertView, ViewGroup parent,
			MessageNotiInfo value) {
		if (convertView == null) {
			convertView = LayoutInflater.from(getmContext()).inflate(
					R.layout.list_item, parent, false);
		}
		TextView datail = (TextView) convertView
				.findViewById(R.id.message_detail);
		datail.setText(value.detail);
		return convertView;
	}

}
